package com.twu.biblioteca;

import java.io.IOException;
import java.util.Collection;

public class PrintMoviesCommand implements Command {

    private Movies movies;
    private Collection<Movie> moviesCollection;


    public PrintMoviesCommand(){
        this.movies = new Movies();
        moviesCollection = movies.loadMovies();
    }


    @Override
    public void execute() throws IOException {
        for(Movie movie : moviesCollection){
            movie.printMovie();
        }
    }
}
